package com.yql.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class OrderVO {
    private User user;
    private Long orderId;
    private Status orderStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date t1;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date t2;
    private BigDecimal m1;
    private BigDecimal m2;

    public OrderVO() {
    }

    public OrderVO(User user, Long orderId, Status orderStatus, Date t1, Date t2, BigDecimal m1, BigDecimal m2) {
        this.user = user;
        this.orderId = orderId;
        this.orderStatus = orderStatus;
        this.t1 = t1;
        this.t2 = t2;
        this.m1 = m1;
        this.m2 = m2;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Status getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Status orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getT1() {
        return t1;
    }

    public void setT1(Date t1) {
        this.t1 = t1;
    }

    public Date getT2() {
        return t2;
    }

    public void setT2(Date t2) {
        this.t2 = t2;
    }

    public BigDecimal getM1() {
        return m1;
    }

    public void setM1(BigDecimal m1) {
        this.m1 = m1;
    }

    public BigDecimal getM2() {
        return m2;
    }

    public void setM2(BigDecimal m2) {
        this.m2 = m2;
    }
}
